const ThreeExamples = require('three')
module.exports = {
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: []
        },
        ...ThreeExamples
    },
    configureWebpack:{
        module: {
            rules: [
                {
                    test: /\.mjs$/,
                    include: /node_modules/,
                    type: "javascript/auto"
                },
            ]
        }
    },
    devServer: {
        proxy: {
            '^/flowableapi': {
                target: 'http://116.62.122.196/flowableapi/',
                // target: 'http://localhost:8081/',
                changeOrigin: true,
                pathRewrite: {
                    '^/flowableapi': ''
                }
            },
            '/bimface-api': {
                target: 'https://api.bimface.com/', //请求本地 需要dtwins-boot后台项目
                ws: false,
                changeOrigin: true,
                pathRewrite: {
                    '/bimface-api': ''  //默认所有请求都加了jeecg-boot前缀，需要去掉
                }
            }
        }
    }
}


